/*
 * @Description:
 * @Autor: 刘诗文
 * @Date: 2020-12-02 10:58:57
 * @LastEditors: 刘诗文
 * @LastEditTime: 2020-12-03 13:55:06
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 回访计划设置查询
export const findAllSettings = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/visit/planSetting/findAll`, { params });

// 回访计划设置-获取计划单号
export const getSettingNo = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/visit/planSetting/getSettingNo`, { params });

// 回访计划设置保存数据
export const saveSettings = params => axios.post(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/visit/planSetting/save`, params);

// 删除回访计划
export const deleteSettings = (settingId, params) => axios.delete(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/visit/planSetting/delete/${settingId}`, { params });

// 发布回访计划设置
export const sendSettings = params => axios.post(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/visit/planSetting/send`, params);

// 停用回访计划设置
export const stopSettings = (settingId, params) => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/visit/planSetting/stop/${settingId}`, { params });
